<?php

namespace App\Repositories\Criteria\Admin;


use Bosnadev\Repositories\Criteria\Criteria;
use Bosnadev\Repositories\Contracts\RepositoryInterface as Repository;

class FatherCondition extends Criteria
{

    public function apply($model, Repository $repository)
    {
        $model = $model->where('pid', '=', 0);
        return $model;
    }
}
